package cn.j229.bug.zhongxuan.eureka_service_feign.controller;

import cn.j229.bug.zhongxuan.eureka_service_feign.proxy.FeignClientHandler;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

/**
 * @Author smile_ZhongXuan
 * @Date 2020/10/29 15:00
 * @Version 1.0
 */
@RestController
@RequestMapping("/user")
public class UserController {
    @Resource
    private FeignClientHandler feignClientHandler = null;

    @RequestMapping(value = "/get",method = RequestMethod.GET,
            produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    public Map get() {
        return feignClientHandler.handler();
    }
}
